home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: Schildt <- Advanced Books
- Date: 8 Mar 96 17:10:16 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.826305016@rscernix>
- References: <8BA8405.02C70020DE.uuout@sourcebbs.com> <4he6hb$ahn@solutions.solon.com> <danpop.826121528@rscernix> <4hmojk$ij2@news.interpath.net> <4hmqqe$aoo@solutions.solon.com>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4hmqqe$aoo@solutions.solon.com> seebs@solutions.solon.com (Peter Seebach) writes:
-
- >In article <4hmojk$ij2@news.interpath.net>,
- >Scott McMahan - Softbase Systems <softbase@mercury.interpath.net> wrote:
- >>What Schildt lacks is a good technical review of his books.
-
- What Schildt lacks is a good understanding of the language he's writing
- books about. A reviewer's job is to find out small and scarce mistakes
- which can happen to anybody, not to fix almost every example written by
- an author who can produce easy books about a topic he's _far_ from
- mastering.
-
- If he also reads books (has he any time left for such an unprofitable
- activity?) a careful reading of K&R2 and the book version of the FAQ
- will do him a lot of good. The ANSI C standard was, obviously, too
- difficult for him to understand.
-
- >>Most of
- >>these things mentioned are finger-check type errors on fairly obscure
- >>points (how many architectures have size_t not set to a word?), but
- >>which a technical reviewer as an impartial third party could point out
- >>to the author.
- >
- >To be picky, obviously a large part of the problem is that size_t is always
- >unsigned. But on my home box, sizeof(size_t) == sizeof(long).
- >
- >(It's actually an unsigned int, but it could just as well be unsigned long,
- >and probably should be.)
-
- ues5:~ 26> grep size_t /usr/include/stddef.h
- typedef unsigned long size_t;
-
- And sizeof(int) < sizeof(long) on my system (no, it's not a DOS box :-)
- So, such implementations do exist in the real world. Even if they wouldn't
- idiots like Schildt shouldn't rely on something which is not guaranteed
- by the standard.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-